﻿namespace kompot_wtf
{
    public class GameState
    {
        public enum State
        {
            TITLE_SCREEN,
            PLAYER_ESCAPE,
            ZOMBIES_ESCAPE,
            GAME_OVER,
			THIEF
        }

        public static State state;

        public static void ChangeState(State newState)
        {
            if (state == State.PLAYER_ESCAPE && newState == State.ZOMBIES_ESCAPE)
            {
                // change music
                state = newState;
            }
            else if (state == State.THIEF && newState == State.PLAYER_ESCAPE)
            {
                state = newState;
                WTF.Instance.SpawnChainsaws();
            }

        }
    }
}
